-- GENERATED SPELL FOR [Moora] --


function spell0_9861(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(11639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9861', 18000, 1)
end

function Sorts_9861(pUnit, Event)
local choix_sorts_9861 = math.random(0, 0)
if choix_sorts_9861 == 0 then
pUnit:RegisterEvent('spell0_9861', 1, 1)
end
end

function mob9861_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9861', math.random(1500, 3000), 1)
end

function mob9861_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9861_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9861_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9861, 1, 'mob9861_Action')
RegisterUnitEvent(9861, 2, 'mob9861_Leave')
RegisterUnitEvent(9861, 3, 'mob9861_Kill')
RegisterUnitEvent(9861, 4, 'mob9861_Die')
